<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    <script src="SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
    <link href="base.css" rel="stylesheet" type="text/css">
  </head>
  <body>

  <g:if test="${sendingEmail==1}">
    <script>
      closeLoading('loader')
    </script>
  </g:if>
  <div class="definicion">
    <div class="perfilAlumno">
${DefinicionUtils.buildSimpleHeaderShow('','perfilAlumno')}
      <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
      </g:if>
      <g:if test="${listaErrores && listaErrores.size()>0}">
        <div class="errors">
          <ul>
            <g:each var="error" in="${listaErrores}">
              <li>${error}</li>
            </g:each>
          </ul></div>
      </g:if>
      <g:hasErrors bean="${alumnoInstance}">
        <div class="errors">
          <g:renderErrors bean="${alumnoInstance}" as="list" />
        </div>
      </g:hasErrors>
    </div>

    <g:form action="save" method="post" autocomplete="off" name="definicion">
      <input type="hidden" name="eOc" value="${eOc}"/>
      <input type="text" id="id" name="id" value="${alumnoInstance?.id}" disabled class="disabled" style="display:none;"/>
      <table width="700" border="0" align="center">
        <tr>
          <td align="center" valign="top"><div id="TabbedPanels1" class="TabbedPanels">
              <ul class="TabbedPanelsTabGroup">
                <li class="TabbedPanelsTab" tabindex="0"><img src="${createLinkTo(dir:'images',file:'datos_personales.png')}"></li>
                <li class="TabbedPanelsTab" tabindex="0"><img src="${createLinkTo(dir:'images',file:'datos_habitacion.png')}"></li>
                <li class="TabbedPanelsTab" tabindex="0"><img src="${createLinkTo(dir:'images',file:'datos_academicos.png')}"></li>
              </ul>
              <div class="TabbedPanelsContentGroup">
                <div class="TabbedPanelsContent"><table width="600" border="0" align="center">

          <tr>
                      <td width="149" align="left" valign="middle" class="labels" ><label for="cedula">
                          <g:message code="alumno.cedula.label" default="C&eacute;dula" />
                        </label></td>
                    <td colspan="3" class="value ${hasErrors(bean:alumnoInstance,field:'id','errors')}"><g:textField name="cedula" maxlength="50" value="${alumnoInstance?.cedula}"  class="campos" style="width:200px"/></td>
                  </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="nombres"><g:message code="alumno.nombres.label" default="Nombres" /></label></td>
                      <td height="0" colspan="3" valign="top"  class="value ${hasErrors(bean: alumnoInstance, field: 'nombres', 'errors')}">
                    <g:textField name="nombres" maxlength="50" value="${alumnoInstance?.nombres}"  class="campos" style="width:200px"/>        </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="apellidos"><g:message code="alumno.apellidos.label" default="Apellidos" /></label></td>
                      <td colspan="3" valign="top"  class="value ${hasErrors(bean: alumnoInstance, field: 'nombres', 'errors')}"><g:textField name="apellidos" maxlength="50" value="${alumnoInstance?.apellidos}"  style="width:200px" class="campos"/></td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name">          </td>
                      <td width="28" >        </td>
                      <td width="202"></td>
                      <td width="203"></td>
                  </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">          </td>
                      <td >        </td>
                      <td></td>
                      <td></td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="nacionalidad"><g:message code="alumno.nacionalidad.label" default="Nacionalidad" /></label>          </td>
                      <td colspan="3" valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'nacionalidad', 'errors')}">
                    <g:textField name="nacionalidad" maxlength="50" value="${alumnoInstance?.nacionalidad}"  style="width:200px"class="campos"/>                      </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"> <label for="lugarDeNacimiento"><g:message code="alumno.lugarDeNacimiento.label" default="Lugar de Nacimiento" /></label>         </td>
                      <td colspan="3" valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'lugarDeNacimiento', 'errors')}">
                    <g:textField name="lugarDeNacimiento" maxlength="100" value="${alumnoInstance?.lugarDeNacimiento}" style="width:200px" class="campos" /></td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="fechaDeNacimiento"><g:message code="alumno.fechaDeNacimiento.label" default="Fecha De Nacimiento" /></label>          </td>
                      <td colspan="3" valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'fechaDeNacimiento', 'errors')}">
                    <g:if test="${alumnoInstance?.fechaDeNacimiento == null}">
                      <g:textField type="text" value="" name="fechaDeNacimiento" id="fechaDeNacimiento" style="width:200px"/>
                    </g:if>
                    <g:else>
                      <g:textField type="text" value="${FormatUtils.formatDateDDMMYYYY(alumnoInstance?.fechaDeNacimiento)}" name="fechaDeNacimiento" id="fechaDeNacimiento" class="campos" style="width:200px"/>
                    </g:else>        </td>
                    </tr>

                    <tr>
                      <td align="left" valign="middle" class="name">
                      <label for="genero"><g:message code="alumno.genero.label" default="G&eacute;nero"/></label>          </td>
                      <td colspan="3" valign="top" class="value ${hasErrors(bean:alumnoInstance,field:'genero','errors')}">                
                    <g:select name="genero" id="genero" from="${['Femenino', 'Masculino']}" value="${alumnoInstance?.genero}" class="campos" style="width:200px"/>                    </td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name"><label for="estadoCivil"><g:message code="alumno.estadoCivil.label" default="Estado Civil" /></label>      </td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'estadoCivil','errors')}">                
                    <g:select name="estadoCivil" id="estadoCivil" from="${['Soltero', 'Casado', 'Concubino', 'Viudo', 'Divorciado']}" value="${alumnoInstance?.estadoCivil}" class="campos" style="width:200px"/>  </td>
                    </tr>

                    <tr>
                      <td align="left" valign="middle" class="name">
                      <label for="grupoSanguineo"><g:message code="alumno.grupoSanguineo.label" default="Grupo Sangu&iacute;neo" /></label>          </td>
                      <td colspan="3" valign="top" class="value ${hasErrors(bean:alumnoInstance,field:'grupoSanguineo','errors')}">                
                    <g:select name="grupoSanguineo" id="grupoSanguineo" from="${['O-', 'O+', 'A-', 'A+', 'B-', 'B+', 'AB-', 'AB+']}" value="${alumnoInstance?.grupoSanguineo}" class="campos" style="width:200px"/>                                    </td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name"> <label for="discapacidad"><g:message code="alumno.telefonoPersonal.label" default="Posee alguna discapacidad"  class="campos" style="width:200px"/></label>     </td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">                
                    <g:select name="discapacidad" id="discapacidad" from="${['Ninguna', 'Auditiva', 'Fisico-motor', 'Visual']}" value="${alumnoInstance?.discapacidad}" class="campos"/> </td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">
                        <label for="puebloIndigena">Pertenece a alg&uacute;n pueblo ind&iacute;gena</label>
                      </td>
                      <td valign="top" class="value ${hasErrors(bean:alumnoInstance,field:'puebloIndigena','errors')}"> 
                        <g:checkBox name="puebloIndigena" value="${alumnoInstance?.puebloIndigena}" />
                      </td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">&nbsp;</td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td colspan="3" valign="top"class="value ${hasErrors(bean:alumnoInstance,field:'discapacidad','errors')}">&nbsp;</td>
                    </tr>
                  </table> 
                </div>
                <div class="TabbedPanelsContent">


                  <table width="600" align="center">
                    <tbody>
                      <tr class="prop">
                        <td width="252" align="left" valign="middle" class="labels">
                        <label for="telefonoPersonal"><g:message code="alumno.telefonoPersonal.label" default="Tel&eacute;fono Personal" /></label>          </td>
                        <td width="336" valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'telefonoPersonal', 'errors')}">
                    <g:textField name="telefonoPersonal" maxlength="50" value="${alumnoInstance?.telefonoPersonal}" class="campos" style=" width:200px;"  />                                        </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels"><label for="telefonoHabitacion"><g:message code="alumno.telefonoHabitacion.label" default="Tel&eacute;fono Habitaci&oacute;n" class="labels" /></label>  </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'telefonoHabitacion', 'errors')}">
                    <g:textField name="telefonoHabitacion" maxlength="50" value="${alumnoInstance?.telefonoHabitacion}"  class="campos" style="  width:200px;"/>&nbsp;</td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">
                      <label for="correo"><g:message code="alumno.correo.label" default="Correo" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'correo', 'errors')}">
                    <g:textField name="correo" maxlength="50" value="${alumnoInstance?.correo}"  class="campos" style=" width:200px;"  />                      </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels"><label for="correoAlternativo"><g:message code="alumno.correoAlternativo.label" default="Correo Alternativo"  /></label></td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'correoAlternativo', 'errors')}">
                    <g:textField name="correoAlternativo" maxlength="50" value="${alumnoInstance?.correoAlternativo}" class="campos" style=" width:200px;"  /></td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">
                      <label for="direccionHabitacion"><g:message code="alumno.direccionHabitacion.label" default="Direcci&oacute;n Habitaci&oacute;n" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">
                    <g:textArea name="direccionHabitacion" rows="3" cols="20" value="${alumnoInstance?.direccionHabitacion}" class="campos"  style=" height:60px; width:200px; font-size:12px;"/>          </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="labels">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'direccionHabitacion', 'errors')}">&nbsp;</td>
                    </tr>
                    </tbody>
                  </table>

                </div>
                <div class="TabbedPanelsContent"><table width="600" border="0" align="center">
                    <tr class="prop">
                      <td width="202" align="left" valign="middle" class="name">
                      <label for="ocupacion"><g:message code="alumno.ocupacion.label" default="Ocupaci&oacute;n" /></label>          </td>
                      <td width="388" valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'ocupacion', 'errors')}">
                    <g:textField name="ocupacion" maxlength="100" value="${alumnoInstance?.ocupacion}" class="campos" style="width:200px" />          </td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="cohorte"><g:message code="alumno.cohorte.label" default="Cohorte" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'cohorte', 'errors')}">
                    <g:textField name="cohorte" maxlength="100" value="${alumnoInstance?.cohorte}" class="campos" style="width:200px" />                                   </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="rep"><g:message code="alumno.rep.label" default="REP" /></label>  </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'rep', 'errors')}">
                    <g:textField name="rep" maxlength="100" value="${alumnoInstance?.rep}" class="campos" style="width:200px" />     </td>
                    </tr>

                    <tr>
                      <td align="left" valign="middle" class="name">
                      <label for="becado"><g:message code="alumno.becado.label" default="Becado" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean:alumnoInstance,field:'becado','errors')}">                
                    <g:checkBox name="becado" value="${alumnoInstance?.becado}" />                                </td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" class="name"><label for="misionRivas"><g:message code="alumno.misionRivas.label" default="Proviene de Misi&oacute;n Ribas" /></label>        </td>
                      <td valign="top" class="value ${hasErrors(bean:alumnoInstance,field:'misionRivas','errors')}">                
                    <g:checkBox name="misionRivas" value="${alumnoInstance?.misionRivas}" />  </td>
                    </tr>


                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="tituloBachiller"><g:message code="alumno.tituloBachiller.label" default="T&iacute;tulo Bachiller" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'tituloBachiller', 'errors')}">
                    <g:textField name="tituloBachiller" maxlength="100" value="${alumnoInstance?.tituloBachiller}"  class="campos" style="width:200px"/>                                  </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="numeroTitulo"><g:message code="alumno.numeroTitulo.label" default="N&uacute;mero T&iacute;tulo" /></label></td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'numeroTitulo', 'errors')}">
                    <g:textField name="numeroTitulo" maxlength="100" value="${alumnoInstance?.numeroTitulo}" class="campos" style="width:200px"/>         </td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="libro"><g:message code="alumno.libro.label" default="Libro" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'libro', 'errors')}">
                    <g:textField name="libro" maxlength="100" value="${alumnoInstance?.libro}" class="campos"  style="width:200px"/>                           </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="folio"><g:message code="alumno.folio.label" default="Folio" /></label></td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'folio', 'errors')}">
                    <g:textField name="folio" maxlength="100" value="${alumnoInstance?.folio}" class="campos" style="width:200px" />     </td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="codigoPlantel"><g:message code="alumno.codigoPlantel.label" default="C&oacute;digo Plantel" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'codigoPlantel', 'errors')}">
                    <g:textField name="codigoPlantel" maxlength="100" value="${alumnoInstance?.codigoPlantel}" class="campos" style="width:200px" />             </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="nombrePlantel"><g:message code="alumno.nombrePlantel.label" default="Nombre Plantel" /></label></td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'nombrePlantel', 'errors')}">
                    <g:textField name="nombrePlantel" maxlength="100" value="${alumnoInstance?.nombrePlantel}" class="campos"  style="width:200px"/></td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name">
                      <label for="anioTitulo"><g:message code="alumno.anioTitulo.label" default="A&ntilde;o T&iacute;tulo" /></label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'anioTitulo', 'errors')}">
                    <g:textField name="anioTitulo" maxlength="100" value="${alumnoInstance?.anioTitulo}" class="campos" style="width:200px" />          </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'anioTitulo', 'errors')}">&nbsp;</td>
                    </tr>

                    <tr class="prop">
                      <td align="left" valign="middle" class="name"><label for="especialidad">
                          <g:message code="alumno.especialidad.label" default="Especialidad" />
                      </label>          </td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'especialidad', 'errors')}">
                        <input type="text" id="especialidad" name="especialidad" value="${alumnoInstance?.especialidad?.nombre}" disabled class="campos" style=" width:200px" />          
                        <input type="hidden" id="especialidadID" name="especialidadID" value="${alumnoInstance?.especialidad?.id}" disabled class="disabled" style=" width:200px" />          </td>
                    </tr>
                    <tr class="prop">
                      <td align="left" valign="middle" class="name">&nbsp;</td>
                      <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'especialidad', 'errors')}">&nbsp;</td>
                    </tr>
                  </table>

</div>
              </div>
            </div></td>
        </tr>
      </table>

    </g:form>
  </div>
  <script>
  jQuery("#fechaDeNacimiento" ).datepicker({
            changeMonth: true,
            changeYear: true
        });
  var TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1");
  </script>
</body>
</html>























































































